﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace TMDT.BusinessObjects
{
    public class LoaiSanPham
    {
        public Guid IDLoaiSanPham { get; set; }
        public string TenLoaiSanPham { get; set; }
        public Guid IDChungLoai { get; set; }

        public static LoaiSanPham Convert(DataRow row)
        {
            LoaiSanPham loaiSanPham = new LoaiSanPham();
            loaiSanPham.IDLoaiSanPham = new Guid(row["IDLoaiSanPham"].ToString());
            loaiSanPham.TenLoaiSanPham = row["TenLoaiSanPham"].ToString();
            loaiSanPham.IDChungLoai = new Guid(row["IDChungLoai"].ToString());

            return loaiSanPham;
        }
    }
}
